Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
Subject: Loading a resource in JavaAgent
Feedback Type: Question
Product Area: Domino Server
Technical Area: Application Development
Platform: Not Applicable
Release: 8.5.2
Reproducible: Not applicable

Can anyone tell me how to load a resource using a JavaAgent? My problem is that I ultimately need a File object to pass to a library. I'm currently using this code but it returns a null URL object:

String file = "myfile.bin";
URL url = this.getClass().getClassLoader().getResource(file);
if(url!=null)
pw.println("FILE:"+url.getFile());
else
pw.println("URL is null");

Is there any documentation/examples anywhere about writing JavaAgents? It's been really frustrating trying to find resources.

Thanks in advance!
Cheers,

Alex


Feedback number WEBB8L4LWX created by ~Delores Umjipyverikle on 08/26/2011

Status: Open
Comments:





Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS